#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
#include<fcntl.h>
#include<sys/stat.h>
int main(){
//int fd1=open("./test.txt",O_WRONLY);
//write(fd1,"HELLO",5);
//close(fd1);
//char arr[10];
//int fd1=open("./test1.txt",O_RDONLY);
//int first=read(fd1,arr,5);
//printf("%d\n%s\n",first,arr);
//int second=read(fd1,arr,5);
//printf("%d\n",second);
//close(fd1);
//int a=12345;
//char buff[1024];
//snprintf(buff,1024,"%d",a);
//write(1,buff,4);
int a;
char buff[1024];
read(0,buff,1024);
sscanf(buff,"%d",&a);
printf("a的值：%d\n",a);
return 0;
}
